VERSION 5.00
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Begin VB.Form frmVentasCaidasxEmpleado 
   BackColor       =   &H80000013&
   BorderStyle     =   5  'Sizable ToolWindow
   ClientHeight    =   3330
   ClientLeft      =   45
   ClientTop       =   315
   ClientWidth     =   4035
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   Moveable        =   0   'False
   ScaleHeight     =   3330
   ScaleWidth      =   4035
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  'CenterScreen
   Begin VB.OptionButton opcionGeneral 
      BackColor       =   &H80000013&
      Caption         =   "General"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00C00000&
      Height          =   252
      Left            =   240
      TabIndex        =   5
      Top             =   240
      Width           =   1572
   End
   Begin VB.OptionButton opcionmple 
      BackColor       =   &H80000013&
      Caption         =   "Por Empleado"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00C00000&
      Height          =   252
      Left            =   240
      TabIndex        =   4
      Top             =   720
      Width           =   2655
   End
   Begin VB.CommandButton cmdImprimir 
      BackColor       =   &H00E0E0E0&
      Caption         =   "Imprimir"
      Height          =   615
      Left            =   2160
      Picture         =   "frmVentasCaidasxEmpleado.frx":0000
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   2520
      Width           =   732
   End
   Begin VB.CommandButton CmdSalir 
      BackColor       =   &H00E0E0E0&
      Caption         =   "&Salir"
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   6.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   615
      Left            =   3000
      Picture         =   "frmVentasCaidasxEmpleado.frx":030A
      Style           =   1  'Graphical
      TabIndex        =   0
      Top             =   2520
      Width           =   735
   End
   Begin MSDataListLib.DataCombo cboEmpleado 
      Bindings        =   "frmVentasCaidasxEmpleado.frx":0894
      Height          =   285
      Left            =   240
      TabIndex        =   2
      Top             =   1560
      Width           =   3615
      _ExtentX        =   6376
      _ExtentY        =   556
      _Version        =   393216
      ListField       =   "nombres"
      BoundColumn     =   "codigo_empleado"
      Text            =   ""
      Object.DataMember      =   "Nombres_EmpleadosN"
   End
   Begin VB.Line Line1 
      X1              =   120
      X2              =   3840
      Y1              =   2160
      Y2              =   2160
   End
   Begin VB.Label Label2 
      BackColor       =   &H00800000&
      BackStyle       =   0  'Transparent
      Caption         =   "Empleado"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00C00000&
      Height          =   255
      Left            =   240
      TabIndex        =   3
      Top             =   1200
      Width           =   3615
   End
End
Attribute VB_Name = "frmVentasCaidasxEmpleado"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdImprimir_Click()
    
    RutaReportes = DE.rsGENCParametros.Fields("RUTA_REPORTES")
    If opcionGeneral.Value = True Then
        ' todos
        Imprimir RutaReportes & "HistorialVentasCaidasxEmpleado.rpt", "", "", "", ""
    End If
    If opcionmple.Value = True Then
        '   solo 1
        MDI.reporte.StoredProcParam(0) = cboEmpleado.BoundText
        Imprimir RutaReportes & "HistorialVentasCaidasxEmple1.rpt", "", "", "", ""
    
    End If
    
End Sub

Private Sub cmdSalir_Click()
    Unload Me
End Sub

Private Sub Form_Load()
 Left = Screen.Width / 2 - Width / 2
    Top = (Screen.Height / 2 - Height / 2) - 800
    LimpiarObjetos Me
 '   Me.Picture = LoadResPicture(104, 0)
    opcionGeneral.Value = True
    Label2.Enabled = False
    cboEmpleado.Enabled = False
    
End Sub

Private Sub opcionGeneral_Click()
    cboEmpleado.Enabled = False
End Sub

Private Sub opcionmple_Click()
    cboEmpleado.Enabled = True
    Label2.Enabled = True
'    opcionmple.Enabled = False
'    opcionGeneral.Value = False
    opcionmple.Value = True
End Sub
